package vim.meet.aspectj;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class DoSomethingAspect {

    @Around("execution(* org.curitis.service.BusinessService.*(..))")
//    @Around("execution(* org.curitis.service.impl.BusinessServiceImpl.*(..))")
    public Object arount(ProceedingJoinPoint joinPoint) throws Throwable {
        System.out.println("before");
        Object result = joinPoint.proceed();
        System.out.println("after");
        return result;
    }
}
